package com.mqqzt.douban;

import android.app.Application;
import android.content.Intent;

import com.mqqzt.douban.domain.Note;

public class MyApp extends Application {
	public Note note;
	@Override
	public void onLowMemory() {
		super.onLowMemory();
		Intent intent = new Intent();
		intent.setAction("kill_activity_action");
		sendBroadcast(intent);
	}
	
	@Override
	public void onCreate() {
		super.onCreate();
		MyCrashHandler myCrashHandler = MyCrashHandler.getInstance();
		myCrashHandler.init(getApplicationContext());
		Thread.currentThread().setUncaughtExceptionHandler(myCrashHandler);
	}
}
